<aside id="sidebar">
     <!--分类-->
  <div class="widget-wrap">
    <h3 class="widget-title">分类</h3>
    <div class="widget">
      <ul class="category-list">
          {% for r_c in right_category %}
                <li class="category-list-item">
                    <a class="category-list-link" href="/post/category/{{ r_c.pcategory }}">{{ r_c.pcategory__cname }}</a>
                    <span class="category-list-count">{{ r_c.c }}</span>
                </li>
          {% endfor %}
      </ul>
      </div>
  </div>

     <!--归档-->
  <div class="widget-wrap">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list">
          {% for r_f in right_file %}
              <li class="archive-list-item">
                  <a class="archive-list-link" href="/post/archieve/{{ r_f.0|date:'Y' }}/{{ r_f.0|date:'m' }}">{{ r_f.0|date:'Y年m月' }}</a>
                  <span class="archive-list-count">{{ r_f.1 }}</span>
              </li>
          {% endfor %}
      </ul>
    </div>
  </div>

    <!--近期文章-->
  <div class="widget-wrap">
    <h3 class="widget-title">近期文章</h3>
    <div class="widget">
      <ul>
          {% for r_r in right_recent %}
              <li>
                <a href="/post/page/detail/{{ r_r.pid }}" target="_blank">{{ r_r.ptitle }}</a>
              </li>
          {% endfor %}
      </ul>
    </div>
  </div>

  <div class="widget-wrap">
    <h3 class="widget-title">友情链接</h3>
    <div class="widget">
      <ul>
          <li>
            <a href="http://www.baidu.com/" target="_blank">baidu</a>
          </li>
          <li>
            <a href="http://www.google.com/" target="_blank">Google</a>
          </li>
      </ul>
    </div>
  </div>
</aside>